<style>
  .tabbar {
    height: 50px;
    width: 100vw;
    background-color: #f5f5f5;
    position: fixed;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0px -2px 20px 2px rgba(165, 165, 165, 0.34);
  }

  .tabbar .tabbar-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #333;
  }
</style>
<div class="tabbar">
  <a href="index.html">
    <div class="tabbar-item">
      <img id="home-icon" width="22" height="22" />
      <span>首页</span>
    </div>
  </a>
  <a href="my.html">
    <div class="tabbar-item">
      <img id="my-icon" width="22" height="22" />
      <span>我的</span>
    </div>
  </a>
</div>